/**
 * author      : dormi330
 * date        : 2018/6/26
 * project     : mybatis
 * description : adaptor 物流服务
 */

package org.wzq.learn.adaptor;

import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class LogisticalService {

    // 运费计算 = f(sku, 数量, 发货地址, 收货地址)
    public BigDecimal getFreight(ItemSku sku, int qty) {
        return new BigDecimal("0.99");
    }
}
